<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>POS收单运营管理平台</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<c:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<c:url value="/css/index.css"/>" type="text/css"
	rel="stylesheet" />
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>


<script type="text/javascript">
	function check() {

		if ($(":checkbox[name=modifyFlag]").attr('checked')) {
			if ($("#newp").val() != $("#pwd").val()) {
				alert("新密码两次输入不一致");
				return false;
			}
			if ($("#newp").val() == "" || $("#pwd").val() == ""
					|| $("#newp").val() == "") {
				alert("密码不能为空");
				return false;
			}
		}

		return true;
	}

	function goback() {
		history.go(-1);
	}

	$(document).ready(
			function() {
				$("#passWord").val("");
				$("#pwd").val("");
				$("#newp").val("");
				$("#modifyBtn").click(
						function() {
							if ($("#passWord").val() == ""
									|| $("#pwd").val() == ""
									|| $("#newp").val() == "") {
								alert("密码不能为空");
								return false;
							}
							if ($("#newp").val() != $("#pwd").val()) {
								alert("新密码两次输入不一致");
								return false;
							}
							return true;
						});
			});
</script>
</head>

<body>

	<div class="subpage">
		<s:form action="/initSbt.ct" method="post" theme="simple">
			<s:hidden name="merchant.id"></s:hidden>
			<div class="user_title">
				<h2 class="headline-inquires">
					POS收单运营管理平台<br /> <span class="sub-title"> </span>
				</h2>
			</div>
			<table width="100%" border="1" cellspacing="0" class="table">
				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">
							初始密码修改<br />
							<span class="sub-title"></span>
						</h2>

					</td>
				</tr>

				<tr>
					<td colspan="4" align="center">&nbsp;</td>
				</tr>
				<tr>
					<td align="right" width="200">账号:</td>
					<td bgcolor="#f1e96d" width="200"><s:property
							value="#session.session_merchant.accountNo" /></td>
					<td align="right" width="200">姓名:</td>
					<td bgcolor="#f1e96d"><s:property
							value="#session.session_merchant.realName" /></td>
				</tr>
				<tr>
					<td align="right">手机号:</td>
					<td><s:property value="#session.session_merchant.mobile" /></td>
					<td align="right">证件号:</td>
					<td colspan="1"><s:property
							value="#session.session_merchant.cardNo" /></td>
				</tr>



			</table>

			<table width="100%" border="1" cellspacing="0" cellpadding="0">
				<tr>
					<td align="right">初始密码：</td>
					<td colspan="3"><s:password cssClass="queryWidth"
							id="passWord" name="passWord" maxlength="16"></s:password><font
						color="red">*</font></td>
				</tr>
				<tr>
					<td align="right">新密码：</td>
					<td colspan="3"><s:password cssClass="queryWidth" id="newp"
							name="newPassWord" maxlength="16"></s:password><font color="red">*</font></td>
				</tr>
				<tr>
					<td align="right">确认密码：</td>
					<td colspan="3"><s:password cssClass="queryWidth" id="pwd"
							name="rePassWord" maxlength="16"></s:password><font color="red">*</font></td>
				</tr>


				<tr>
					<td colspan="4" align="center"><s:if
							test="#session.session_merchant!=null">
							<s:submit value="修   改" id="modifyBtn"></s:submit>
						</s:if> <s:else>
							<s:submit value="修   改" disabled="true" id="modifyBtn"></s:submit>
						</s:else> &nbsp;&nbsp;&nbsp;&nbsp; <s:reset value="取  消"></s:reset></td>
				</tr>
				<tr>
					<td colspan="3" align="center"><span style="font-color: red"><s:actionerror /></span>
						<span style="font-color: red;"><s:actionmessage /></span> <span
						style="font-color: red;"><s:fielderror
								cssClass="fieldError" /></span> <span id="otherError"></span></td>
				</tr>
				<tr align="center">
					<td colspan="4" height="60px">提示：新密码必须由数字、字母或特殊字符组成； 密码长度最低7位，最多12位</td>
				</tr>
			</table>
		</s:form>
	</div>

</body>
</html>
